s= "sample string"
rp = {'a'=>'i','s'=>'t'}
rp.map(&s.method('gsub!'))
puts s